package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 机构提供的产品与费率关系表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-05
 */
@Data
@Accessors(chain = true)
@TableName("platform_r_rate_org_prod")
@ApiModel(value = "RRateOrgProd对象", description = "机构提供的产品与费率关系表")
public class RRateOrgProd extends Model<RRateOrgProd> {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("费率id")
    @TableField("rate_id")
    private Long rateId;

    @ApiModelProperty("机构产品id")
    @TableField("org_prod_id")
    private Long orgProdId;

    @TableField("active")
    private String active;


    public static final String ID = "id";

    public static final String RATE_ID = "rate_id";

    public static final String ORG_PROD_ID = "org_prod_id";

    public static final String ACTIVE = "active";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
